<%@ page contentType="text/html" language="java" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib  uri="/struts-tags" prefix="s"%>
<div class="pageHeader" style="border:1px #B8D0D6 solid">
	<form id="pagerForm" onsubmit="return divSearch(this, 'jbsxBox2');" action="projectmanagement/fileList?moduleName=project&filetypeId=${filetypeId}&projectUuid=${projectUuid}" method="post">
    <input type="hidden" name="pageNum" value="1" />
    <input type="hidden" name="numPerPage" value="${pager.pageSize}" />
    <input type="hidden" name="orderField" value="${pager.orderField}" />
    <input type="hidden" name="orderDirection" value="${pager.orderDirection}" />
    <input type="hidden" name="lookup" value="${lookup}" />
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					文件名称:
					<input type="text" id="fileName" name="c_T_Sys_File.fileName" value="${c_T_Sys_File.fileName}"/>
				</td>
				<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索</button></div></div></td>
			</tr>
		</table>
	</div>
	</form>
</div>

<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
<div class="panelBar">
		<ul class="toolBar">
			<!-- <li><a class="add" href="demo/pagination/dialog2.html" target="dialog" mask="true"><span>添加尿检检测</span></a></li> -->
			<li><a title="确实要删除这些记录吗?" target="selectedTodo" rel="checkIds" href="projectmanagement/fileDel?filetypeId=${filetypeId}" class="delete"><span>删除</span></a></li>
			<!-- <li><a class="delete" href="demo/pagination/ajaxDone3.html?uid={sid_obj}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li> -->
			<!-- <li><a class="edit" href="demo/pagination/dialog2.html?uid={sid_obj}" target="dialog" mask="true"><span>修改</span></a></li> -->
			<li class="line">line</li>
		<!-- 	<li><a class="icon" href="demo/common/dwz-team.xls" target="dwzExport" title="实要导出这些记录吗?"><span>导出EXCEL</span></a></li> -->
		</ul>
	</div>
	<table class="table" width="100%" layoutH="151" rel="jbsxBox2">
		<thead>
			<tr>
			 	<th width="1%"><input type="checkbox" name="checkIds" group="checkIds" class="checkboxCtrl"></th>
				<th width="3%">序号</th>
				<th width="10%"  orderField="module_name" <c:if test="${(pager.orderField)== 'module_name'}">class="${pager.orderDirection}"
				</c:if>>模块名称</th>
				<th orderField="file_name" <c:if test="${(pager.orderField)== 'file_name'}">class="${pager.orderDirection}"</c:if>>文件名称</th>
				<th orderField="file_time" <c:if test="${(pager.orderField)== 'file_time'}">class="${pager.orderDirection}"</c:if>>上传时间</th>
				<th orderField="type" <c:if test="${(pager.orderField)== 'type'}">class="${pager.orderDirection}"</c:if>>文档类型</th>
				<th width="10%">下载</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${pager.pageRecords}" var="c_T_Sys_File" varStatus="s">
			<tr target="sid_obj" rel="1">
			 	<td><input name="checkIds" value="${c_T_Sys_File.fileId}" type="checkbox"></td>
				<td>${s.count +pager.pageSize*(pager.currentPage-1)}</td>
				<td>${c_T_Sys_File.moduleName}</td>
				<td>${c_T_Sys_File.fileName}</td>
				<td>${c_T_Sys_File.fileTime}</td>
				<td>${c_T_Sys_File.type}</td>
				<td><a href="${c_T_Sys_File.fileUflPath}" title="文件另存为"><font color="blue">文件另存为</font></a></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value}, 'jbsxBox2')">
			<option value="5" ${pager.pageSize == 5?'selected=\"selected\"':''}>5</option>
            <option value="10" ${pager.pageSize == 10?'selected=\"selected\"':''}>10</option>
            <option value="15" ${pager.pageSize == 15?'selected=\"selected\"':''}>15</option>
            <option value="20" ${pager.pageSize == 20?'selected=\"selected\"':''}>20</option>
            <option value="25" ${pager.pageSize == 25?'selected=\"selected\"':''}>25</option>
            <option value="30" ${pager.pageSize == 30?'selected=\"selected\"':''}>30</option>
            <option value="35" ${pager.pageSize == 35?'selected=\"selected\"':''}>35</option>
		    <option value="40" ${pager.pageSize == 40?'selected=\"selected\"':''}>40</option>
            <option value="45" ${pager.pageSize == 45?'selected=\"selected"':''}>45</option>
            <option value="50" ${pager.pageSize == 50?'selected=\"selected\"':''}>50</option>
            <option value="100" ${pager.pageSize == 100?'selected=\"selected\"':''}>100</option>
            <option value="150" ${pager.pageSize == 150?'selected=\"selected\"':''}>150</option>
            <option value="200" ${pager.pageSize == 200?'selected=\"selected\"':''}>200</option>
			</select>
			<span>条，共${pager.totalRecords}条</span>
		</div>
		
		<div class="pagination" rel="jbsxBox2" totalCount="${pager.totalRecords}" numPerPage="${pager.pageSize}" pageNumShown="10" currentPage="${pager.currentPage}"></div>
	</div>
</div>